using UnityEngine;
using System.Collections;

/*public class TreeStructure {
	public Texture texture;
	public Texture texture2;
	public Texture texture3;
	public Texture texture4;
	public int MinSize = 5;
	public int split;


	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	
	
	void Update () 
	{
		
		if( child1 = null) //left
		{
			Graphics.DrawTexture(new Rect(10, 10, 100, 100), texture);//generate room
		}
		
		else if (child2 = null) //right
		{
			Graphics.DrawTexture(new Rect(10, 10, 100, 100), texture); //generate room
		}
	
		else
		{
			VisitChild();
		}
		
	}
	
	void DungeonBSP(float startX, float startY, float endX, float endY)
        {
            LeftEdge = startX;
            RightEdge = endX;
            TopEdge = startY;
            BottomEdge = endY;

            NodeWidth = RightEdge - LeftEdge;
            NodeHeight = BottomEdge - TopEdge;
		}
	
	void VisitChild()
	{
		if(child1 < MinSize)
			split = MinSize;
	}
}*/
